package 变量交换算法.交换数字;

/**
 * TODO
 *
 * @className: jhsz
 * @description: TODO
 * @author: 等什么柠檬君
 * @date: 2022-05-10 14:22
 **/
public class jhsz {
    public int[] swapNumbers(int[] numbers) {
        numbers[0] = numbers[0]+numbers[1];
        numbers[1] = numbers[0]-numbers[1];
        numbers[0] = numbers[0]-numbers[1];
        return numbers;
    }
}
